<div class="row">
	<div class="col-md-12">
		<div class="bid-payout-total" style="border: 1px solid #ddd; padding: 10px; margin-bottom: -1px; border-top: none;">
			<span>待付款项合计：</span>
			<b class="text-danger">${(data.planoutMoneyTotal?string('currency'))!'-'}</b>
		</div>
	</div>
	<div class="col-md-12">
		<table class="table table-bordered" style="border: none;">
			<tr>
				<#if roles.thisXiangmuManager >
				<th class="text-center" width="45">变更</th>
				</#if>
				<th class="text-center" width="60">状态</th>
				<th class="text-center" width="190">付款金额（元）</th>
				<th class="text-center" width="110">付款日期</th>
				<th class="text-center">付款单位</th>
				<th class="text-center" width="110">付款负责人</th>
				<th class="text-center">付款事项</th>
				<th class="text-center">备注</th>
				<th class="text-center" style="min-width: 160px;">变更记录</th>
			</tr>
			<#if data.payoutPlans??>
			<#list data.payoutPlans as po>
			<tr class="${(po.payout?? && po.payout)?string('money-gave-back text-danger','')}">
				<#if roles.thisXiangmuManager>
				<td class="text-center">
					<#if !(po.payout?? && po.payout)>
					<a href="javascript:;" class="icon-random text-primary edit-payout-plan" data-id="${po.id}" data-cid="${data.id}"></a>
					</#if>
				</td>
				</#if>
				<td class="text-center get-back-money-by-plan"><#if po.payout?? && po.payout> 已付款<#else>未付 </#if></td>
				<td class="text-center">${(po.total?string('currency'))!'-'}</td>
				<td class="text-center">${(po.payoutTime?string('yyyy-MM-dd'))!'-'}</td>
				<td class="text-center">${po.moneyTo!'-'}</td>
				<td class="text-center">${po.header.name!'-'}</td>
				<td class="">${po.reason!'-'}</td>
				<td class="text-center">${po.remark!'-'}</td>
				<td>
					<!--  -->
					<#if po.changeReason??>
					<!--  -->
					<#list po.changeReason?split('++--++') as r>
					<!--  -->
					<#assign d=r?split('--++--')>
					<!--  -->
					<small class="text-danger"> ${r_index+1}、${d[0]!''} （${d[1]!''}） </small>
					<small>
						<br>
						${(d[2]?replace('\n','
						<br>
						'))!''}
					</small>
					<br>
					</#list>
					<!--  -->
					<#else> - </#if>
				</td>
			</tr>
			</#list>
			</#if>
		</table>
	</div>
</div>

